package org.irri.smta.domain;

public enum Action {
	
	CREATE("CREATE", "C"),
	READ("READ", "R"),
	UPDATE("UPDATE", "U"),
	DELETE("DELETE", "D");
	
	private String name;
	private String code;
	
	private Action(String theName, String theCode) {
		name = theName;
		code = theCode;
	}

	public String getName() {
		return name;
	}

	public String getCode() {
		return code;
	}

	@Override 
	public String toString() {
		return code;
	}
	
}
